// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/store' //把仓库引入store
import VueLazyLoad from 'vue-lazyload'
import httpRequest from './utils/httpRequest'
Vue.config.productionTip = false
Vue.use(VueLazyLoad,{
	preLoad: 1.3,
	error: './static/imgs/error.png',
	loading: './static/imgs/loading.gif',
	attempt: 3
})


// 挂载全局
Vue.prototype.$http = httpRequest // ajax请求方法
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
